     iframe      .

: DomiTori
 : https://domitori.ru/

 ,  .

1.   , utf8  win1251.    ,      /engine/modules/iframe.php    /engine/modules/   .    /templates/Default/iframe.tpl   /templates/  /.

2.  /engine/engine.php     

switch ( $do ) {

 

case "iframe" :
		include ENGINE_DIR . '/modules/iframe.php';
		break;
		
2.  .htaccess    ,    

RewriteEngine On

 

#  iframe      

RewriteRule ^([^.]+)/([0-9]+)-(.*)/iframe/$ index.php?do=iframe&newsid=$2&seourl=$3&seocat=$1 [L]
RewriteRule ^([0-9]+)-(.*)/iframe/$ index.php?do=iframe&newsid=$1&seourl=$2 [L]

3.  /engine/modules/main.php     

$tpl->set ( '{content}', "<div id='dle-content'>" . $tpl->result['content'] . "</div>" );

  

if ($do == "iframe") $tpl->set ( '{content}', $tpl->result['content'] );
else $tpl->set ( '{content}', "<div id='dle-content'>" . $tpl->result['content'] . "</div>" );

4.  /engine/modules/show.full.php   ! /engine/modules/show.short.php (     )

   

$full_link = $config['http_home_url'] . $c_url . "/" . $row['id'] . "-" . $row['alt_name'] . ".html";

 

$iframe_link = $config['http_home_url'] . $c_url . "/" . $row['id'] . "-" . $row['alt_name'] . "/iframe/";

  

$full_link = $config['http_home_url'] . $row['id'] . "-" . $row['alt_name'] . ".html";

 

$iframe_link = $config['http_home_url'] . $row['id'] . "-" . $row['alt_name'] . "/iframe/";

  

$tpl->set( '{full-link}', $full_link );

 

$tpl->set( '{iframe-link}', $iframe_link );

    {iframe-link},         iframe ,         (      /engine/modules/show.short.php).


5.   /engine/modules/iframe.php     

moonwalk

        ,     iframe .

6. .  main.tpl  ,     

[not-aviable=iframe]

   

[/not-aviable]
[aviable=iframe]
{content}
[/aviable]


-----------------------------------------------------------------------------------------------------------------------------------


   !

 ,           

 - R417794992142
 - U357368699010
$ - Z244912848144